package com.lvjunxiong.serviceinterface.tongxun;

import java.util.Comparator;

public class GroupnameComparetor implements Comparator<Sh_groupname> {
    @Override
    public int compare(Sh_groupname h1, Sh_groupname h2) {
        if (h1.getId() > h2.getId()) {
            return 1;
        } else if (h1.getId() == h2.getId()) {
            return 0;
        } else {
            return -1;
        }
    }
}